package com.cnswhy.cloud.server.core.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.cnswhy.cloud.common.core.base.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.cnswhy.cloud.server.common.entity.enumeration.IotType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 
 * </p>
 *
 * @author cnswhy
 * @since 2021-03-11
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "IotTerminalApplyInfoSaveDTO", description = "")
public class IotTerminalApplyInfoSaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 类型
     */
    private IotType iotType;
    /**
     * 0失效 1 生效
     */
    @ApiModelProperty(value = "0失效 1 生效")
    private Integer status;
    /**
     * 申请数量
     */
    @ApiModelProperty(value = "申请数量")
    private Long applySum;
    /**
     * 开始序列号
     */
    @ApiModelProperty(value = "开始序列号")
    private Long startIndex;
    /**
     * 结束序列号
     */
    @ApiModelProperty(value = "结束序列号")
    private Long endIndex;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    @Length(max = 255, message = "备注长度不能超过255")
    private String remark;
    /**
     * 批次号
     */
    @ApiModelProperty(value = "批次号")
    @Length(max = 0, message = "批次号长度不能超过0")
    private String batchOrderId;

}
